<!--#include file="header.htm" -->
<div id="content">

<h1>SSI Processing</h1>
<p>A new feature of the HTTP server is the "Server Side Includes" (SSI).
The HTTP server internally processes some of the most usual SSI commands:
<i>include, set, echo</i>.
The user will be notified by the occurrence of the SSI commands within a Web Page.</p>
<p>To set a SSI variable in a web page use the syntax: <br>
<div class="examplebox code">&lt;!--#set var="myStrVar" value="A string variable" --&gt;&lt;!--#set var="myIntVar" value="1779945" --&gt;</div><br>
A variable can reference an existing variable, for example:<br>
<div class="examplebox code">&lt;!--#set var="myStrVarRef" value="$myStrVar" --&gt;</div><br>
To delete a variable use the NULL string:<br>
<div class="examplebox code">&lt;!--#set var="myStrVarRef" value="" --&gt;</div><br>

To display the current value of a SSI variable use the <i> "echo" </i> command:<br>
<div class="examplebox code">&lt;!--#echo var="myStrVar" --&gt;</div><br>
Note that the application will be notified that an echo command is processed 
and the current value of the SSI variable can be changed.
</p>
<p>As an example, this page implements a simple page counter using the variable <i> myStrVar </i>.<br>
<div class="examplebox code">&lt;!--#set var="myStrVar" value="A string variable" --&gt;</div><br>
<!--#set var="myStrVar" value="This variable is a string" -->
The SSI variable  <i> myStrVar </i> echoed value is:<br><b>
<!--#echo var="myStrVar" -->
</b></p>

<p>Other SSI commands will be eventually added: <i> #if, #else, #elif, #exec, etc. </i>
The SSI commands need to start at the beginning of a line.<br>
SSI is not a replacement for other dynamic pages technologies.
But it's a simple way to add small amounts of dynamic content in a standard way that is
supported by most HTTP servers</p>

</div>

<script type="text/javascript">
<!--
document.getElementById('hello').innerHTML = "~hellomsg~";
-->
</script>
<!--#include file="footer.htm" -->
